function readURL(input,preview) {
    if (input.files && input.files[0]) {
        var reader = new FileReader();
        reader.onload = function (e) {
            $('#'+preview).attr('src', e.target.result);
        }
        reader.readAsDataURL(input.files[0]);
    }
}
$("#imgInp").change(function(){
	readURL(this,'preview');
});
$("#image_1").change(function(){
	readURL(this,'preview_1');
});
$("#image_2").change(function(){
	readURL(this,'preview_2');
});
$("#image_3").change(function(){
	readURL(this,'preview_3');
});
$("#image_4").change(function(){
	readURL(this,'preview_4');
});